#include <rtthread.h>
#include <rtdevice.h>

int test_can_motor();
int test_basestation();
int test_cmd_type();

void test_entry(void* p)
{
    test_can_motor();
}

int test_cpp(void)
{
    rt_thread_t th = rt_thread_create("test", test_entry, RT_NULL, 2048, 15, 5);
    if(th != RT_NULL)
    {
        rt_thread_startup(th);
    }   
    else
    {
        rt_kprintf("test thread start faild\n");
    }
    
    return 0;
}
MSH_CMD_EXPORT(test_cpp, xxxxx);


int test_cmd(void)
{
    test_cmd_type();
}
MSH_CMD_EXPORT(test_cmd, xxxxx);